<template>
	<view>
		<view class="bg">
			<view class="fanhui">
				<image src="../../../../static/teacherimg/fan.png" mode="" class="hui" @click="fanhui"></image>
				<text class="myxueyuanzi">学生作业</text>
			</view>
		</view>
		
		<view class="biaoti">
			<view class="biaotizi">作业标题</view>
			<view class="riqi">6月10日 作业</view>
		</view>
		
		<view class="zuoye-content">
			作业内容:
		</view>
		
		<view class="shipin">
			 
			  <video :src="src" class="video"></video>
		</view>
		<button @tap="test" class="shangchuan">上传</button>
		<view class="yaoqiu">
			已按照老师要求上传视频，还期望老师多多指点下
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: '',
			}
		},
		methods: {
			test: function () {
			    var self = this;
			    uni.chooseVideo({
			        count: 1,
			        sourceType: ['camera', 'album'],
			        success: function (res) {
			            self.src = res.tempFilePath;
			        }
			    });
			}
		}
	}
</script>

<style>
	
.bg{
	width: 100%;
	height: 116rpx;
	position: relative;
	background: url(../../../../static/teacherimg/tabbar.png) no-repeat;
	background-size: cover;
}
.fanhui{
	width: 690rpx;
	height: 35rpx;
	position: absolute;
	display: flex;
	bottom: 0rpx;
	left: 30rpx;
}
.myxueyuanzi{
	width:auto;
	height: 100%;
	font-size:32rpx;
	color: #333333;
	font-weight: bold;
	margin: auto;
}
.hui{
	width: 18rpx;
	height: 32rpx;
}

.biaoti{
	width: 600rpx;
	height: 80rpx;
	margin: auto;
	border-bottom:1rpx solid #F5F5F5;
	margin-top: 150rpx;
	display: flex;
	flex-direction: row;
	align-items: center;
}
.biaotizi{
	width: auto;
	height: auto;
	color: #333333;
	font-size: 32rpx;
	font-weight: bold;
}
.riqi{
	width: auto;
	height: auto;
	color: #333333;
	font-size: 28rpx;
	font-weight: 500;
	margin-left: 50rpx;
}

.zuoye-content{
	width: 600rpx;
	height: 32rpx;
	margin: auto;
	margin-top: 90rpx;
	color: #333333;
	font-size: 32rpx;
	font-weight: bold;
}
.shipin{
	width: 630rpx;
	height: 400rpx;
	border-radius:10rpx;
	overflow: hidden;
	margin: auto;
	margin-top: 30rpx;
	background: #F5F5F5;
}
.yaoqiu{
	width: 630rpx;
	height: 30rpx;
	margin: auto;
	margin-top: 37rpx;
	color: #777777;
	font-size: 28rpx;
	font-weight: 500;
}

.video{
   width:628rpx;
   height:100%;
}
.shangchuan{
	width: 600rpx;
	margin-top:30rpx;
}


</style>
